package br.com.jdcanado.gae.inforse.model;

import java.io.Serializable;
import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import javax.persistence.Transient;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable(identityType=IdentityType.APPLICATION, detachable="true")
public class Orcamento implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key id;	
	@Persistent
	private Date dataEmissao;	
	@Persistent
	private String usuarioEmissao;	
	@Persistent
	private String status;
	@Persistent
	private Cliente cliente;
	@Persistent
	private ValorOrcamento valorOrcamento;
	@Persistent
	private String corStatus;
	
	/*
	 * Métodos Get e Set
	 *  
	 */		
	
	public Key getId() {
		return id;
	}
	
	public void setId(Key id) {
		this.id = id;
	}	

	public Date getDataEmissao() {
		return dataEmissao;
	}

	public void setDataEmissao(Date dataEmissao) {
		this.dataEmissao = dataEmissao;
	}

	public String getUsuarioEmissao() {
		return usuarioEmissao;
	}

	public void setUsuarioEmissao(String usuarioEmissao) {
		this.usuarioEmissao = usuarioEmissao;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Cliente getCliente() {
		return cliente;
	}

	public void setCliente(Cliente cliente) {
		this.cliente = cliente;
	}

	public ValorOrcamento getValorOrcamento() {
		return valorOrcamento;
	}

	public void setValorOrcamento(ValorOrcamento valorOrcamento) {
		this.valorOrcamento = valorOrcamento;
	}

	public String getCorStatus() {
		return corStatus;
	}

	public void setCorStatus(String corStatus) {
		this.corStatus = corStatus;
	}		
}
